package com.euc.springbootframework.controller.auth;

import com.euc.springbootframework.controller.base.RESTBaseController;
import com.euc.springbootframework.entity.Function;
import com.euc.springbootframework.service.auth.FunctionService;
import com.euc.springbootframework.service.base.RestBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
@ResponseBody
@RequestMapping(value = "/function")
public class FunctionController extends RESTBaseController<Function> {

    @Autowired
    private FunctionService service;

    @Override
    public RestBaseService<Function> getRestService() {
        return service;
    }
}
